package forms
import "LiquidMeasurement/lib"
//import "LiquidMeasurement/lib"

type DepartmentManageForm struct {
	Id          	uint64
	Name 			string    `valid:"Required;Msg(部门名字不能为空)"`
	Detail			string	  `valid:"Required;Msg(部门介绍不能为空)"`
}


//func (form *DepartmentManageForm) Valid(v *validation.Validation) {
//
//}

func (form *DepartmentManageForm)CheckValid()(b bool,Errors []lib.ERROR)  {
	valid := lib.Validation{}
	b, err_msg := valid.Valid(form)
	return b,err_msg
}
